package com.tianya.controller;


import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Value;

@RestController
@RefreshScope
public class TestNacosController {

    @Value("${your.config.key}")
    private String configValue;

    @GetMapping("/config")
    public String getConfigValue() {
        return configValue;
    }

}
